package com.tiger.cmpeb.sample3;

import java.rmi.RemoteException;

import javax.ejb.CreateException;
import javax.ejb.EJBException;
import javax.ejb.EntityBean;
import javax.ejb.EntityContext;
import javax.ejb.RemoveException;

public abstract class AddressBean02 implements EntityBean {

	private static final long serialVersionUID = 1L;

	private EntityContext entityContext = null;

	public abstract void setAddressID(Integer addressID);

	public abstract Integer getAddressID();

	public abstract void setZipCode(String zipCode);

	public abstract String getZipCode();

	public abstract void setCountry(String country);

	public abstract String getCountry();

	public abstract void setPrefecture(String prefecture);

	public abstract String getPrefecture();

	public abstract void setCity(String city);

	public abstract String getCity();

	public abstract void setCustomer(Customer03 customer);

	public abstract Customer03 getCustomer();

	public Integer ejbCreate(Integer addressID, String zipCode, String country, String prefecture, String city) throws CreateException {
		setAddressID(addressID);
		setZipCode(zipCode);
		setCountry(country);
		setPrefecture(prefecture);
		setCity(city);
		return addressID;
	}

	public void ejbPostCreate(Integer addressID, String zipCode, String country, String prefecture, String city) {

	}

	public void ejbActivate() throws EJBException, RemoteException {
	}

	public void ejbLoad() throws EJBException, RemoteException {
	}

	public void ejbPassivate() throws EJBException, RemoteException {
	}

	public void ejbRemove() throws RemoveException, EJBException, RemoteException {
	}

	public void ejbStore() throws EJBException, RemoteException {

	}

	public void setEntityContext(EntityContext entityContext) throws EJBException, RemoteException {
		this.entityContext = entityContext;
	}

	public void unsetEntityContext() throws EJBException, RemoteException {
		this.entityContext = null;
	}

}
